<template>

    <error :code="code" :message="message">
        <el-button @click="$router.go(-1)">返回上一页</el-button>
        <el-button type="primary" class="not-found-btn-gohome" @click="$router.push('/')">进入首页</el-button>
    </error>

</template>

<script>
    import error from './error'
    export default {
        name: "error404",
        components:{error},
        data(){
            return{
                code:"404",
                message:"抱歉！您访问的页面失联啦 ...",
            }
        },
        mounted(){
            this.code = this.$route.query.code+ ""
            this.message = "抱歉！"+ this.$route.query.message
        }
    }
</script>

<style scoped>

</style>